package day03_work_b;

public class Test {
    public static void main(String[] args) {
        Student s=new Student("小明",18);
        Student s2=new Student("小红",19);

        System.out.print(s+"\t");
        show(Sex.BOY);

        System.out.print(s2+"\t");
        show(Sex.GIRL);
    }
    public static void show(Sex a){
        switch (a){
            case BOY :
                System.out.println("性别：男");
               break;
            case GIRL:
                System.out.println("性别：女");
                break;


        }
    }
}
